﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OMModel;

namespace OpenMenu
{
    public partial class FrmOpenDesk : Form
    {
        public FrmOpenDesk()
        {
            InitializeComponent();
            GetRandomTestDeskInfo();
        }

        private DeskInfo GetRandomTestDeskInfo()
        {   
            Random rd = new Random();
          //  string dealId = rd.Next(100).ToString();
            string dealId = rd.Next(100).ToString() + DateTime.Now.ToShortDateString().Replace('/','1')+ "1" + rd.Next(100).ToString();
            DateTime dt = DateTime.Now;

            return new DeskInfo();
        }

        private void _btnOrder_Click(object sender, EventArgs e)
        {
            FrmOrder frmOrder = new FrmOrder();
            frmOrder.ShowDialog();
        }

        private void _btnSendMenu_Click(object sender, EventArgs e)
        {
            FrmSendOrder sendOrderForm = new FrmSendOrder();
            sendOrderForm.ShowDialog();
        }

        private void _btnWithdrawMenu_Click(object sender, EventArgs e)
        {
            FrmRevokeOrder revokeOrderForm = new FrmRevokeOrder();
            revokeOrderForm.ShowDialog();
        }


        

    }
}
